package com.zyh.system.JDsupermarkt.dao;

import com.zyh.system.JDsupermarkt.domain.Goods;

import java.util.LinkedHashMap;

public interface GoodsDao {
    boolean addGoods(LinkedHashMap<Integer, Goods> map, Goods goods,Integer goodsId);
    void showAll(LinkedHashMap<Integer, Goods> map);
    Goods selectById(LinkedHashMap<Integer, Goods> map,Integer id);
    boolean updateById(LinkedHashMap<Integer, Goods> map, Integer id, Goods goods);
    Goods deleteById(LinkedHashMap<Integer, Goods> map, Integer id);
}
